{% extends "commons/main_layout.html" %}
{% block title %}
    首页
{% endblock %}
{% block css %}
<link rel="stylesheet" href="{{url_for('static', filename='css/index.css')}}">
{% endblock %}
{% block main_center %}
    <!--发布微博区域开始-->
    <div class="form-section">
        <p class="text-primary">有什么新鲜事想告诉大家？</p>
        <form action="{{url_for('blog.publish')}}" method="post">
            {{form.hidden_tag()}}
            <div class="form-group">
                {{form.content(id="form-content", class="form-control", rows="3", style="resize:none;")}}
            </div>
            <div>
                <p class="form-control-static text-muted pull-left">还可以输入<i id="text-number"> 120 </i>个字</p>
                {{form.submit(id="form-submit", class="btn btn-primary pull-right", disabled="")}}
            </div>
        </form>
    </div>
    <!--发布微博区域结束-->
    <!--博客列表区域开始-->
    <div class="blog-list">
        {% for blog in blogs %}
            {% include "commons/blog_section.html" %}
        {% endfor %}
    </div>
    <!--博客列表区域结束-->
{% endblock %}
{% block scripts %}
<script src="{{url_for('static', filename='js/index.js')}}"></script>
{% endblock %}